SET SCREEN EFFECT
This command will use the specified effect shader and apply it to a built-in screen quad that will replace the default contents from the backbuffer.
SET SCREEN EFFECT Effect Number
Effect Number
Integer
The effect number
This command does not return a value.
This command is typically used in tandem with other commands that redirect backbuffer rendering to an off-screen camera and subsequently rendered to an image for post process shading. You can create an effect using the LOAD EFFECT command. This command depends on the QUAD.FX file located in the Compiler\Effects folder of the compiler, and can be used as a base from which to make modifications to your post process shader effect.
SET CAMERA TO IMAGE 0,123,640,480
LOAD EFFECT "quad.fx",1,0
SET SCREEN EFFECT 1
TEXTURE SCREEN 123
WAIT KEY
CORE Commands Menu
Index